﻿using System;

namespace nanoCMS.Core.Concrete {
	public partial class User {
		public string GetDisplayName()
		{
			if (!String.IsNullOrEmpty(DisplayName) && !String.IsNullOrWhiteSpace(DisplayName)) return DisplayName;
			else if (!String.IsNullOrEmpty(Username)) return Username;
			return Email;
		}
	}
}
